(()=>{
    interface Node {
        text:string;
        children:Node[]
    }
    
    const loadJson = ()=>{
        const xhr = new XMLHttpRequest()
        xhr.open('GET','./dir.json',true)
        const json =  xhr.send()
        console.log(json);
    }
    loadJson()
})()